package com.owc.domain.vo.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author xiaom
 * @Date 2020/2/27 14:18
 * @Version 1.0.0
 * @Description <>
 **/
@Data
@ApiModel("兑换参数")
public class ExchangeVo implements Serializable {

    @ApiModelProperty("兑换类型 (和汇率配置key对应)")
    @NotNull(message = "Type must not be null.")
    private String type;

    @ApiModelProperty("汇率")
    @NotNull(message = "Rate must not be null")
    private BigDecimal rate;

    @ApiModelProperty("兑换数量")
    @NotNull(message = "Exchange amount must not be null.")
    private BigDecimal amount;

}
